package svc

import (
	"example.com/training-go-zero/models"
	"example.com/training-go-zero/rpc/internal/config"
)

type ServiceContext struct {
	Config    config.Config
	UserModel models.UsersModel
}

func NewServiceContext(c config.Config) *ServiceContext {
	//sqlConn := sqlx.NewMysql(c.Mysql.DataSource)
	return &ServiceContext{
		Config: c,
		//UserModel: models.NewUsersModel(sqlConn, c.Cache),
	}
}
